<template>
<transition>
  <div class="back-top" @click="backTop">
    <i class="iconfont icon-backtop"></i>
  </div>
</transition>
</template>
<script>
export default {
  name: 'meBackTop',
  methods: {
    backTop () {
      this.$emit('backTop')
    }
  }
}
</script>
<style lang="stylus" scoped>
.v-enter-active,.v-leave-active
  transition opacity 1s
.v-enter,.v-leave-to
  opacity 0

.iconfont
  font-size 50px
</style>
